package com.gs.djys.guide;

import com.alibaba.fastjson.JSON;
import com.gs.djys.Base.MyAppliCation;
import com.gs.djys.Base.Urls;
import com.gs.djys.main.MainBean;
import com.gs.djys.mvp.BasePresenterImpl;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.callback.StringCallback;
import com.lzy.okgo.model.Response;

/**
 * MVPPlugin
 *  邮箱 784787081@qq.com
 */

public class GuidePresenter extends BasePresenterImpl<GuideContract.View> implements GuideContract.Presenter{
    @Override
    public void getTJ() {
        OkGo.<String>get(Urls.SERVER + "/road/lictran/licApp/request/tj")
                .params("user_code", MyAppliCation.spUtils.getString("userCode"))
                .execute(new StringCallback() {
                    @Override
                    public void onSuccess(Response<String> response) {
                        mView.getTJs(response.body().toString());
                    }
                });
    }
}
